import resource from 'vueResourceConfig'
import mockData from '../mock/mock_data'
export default {
  doSomething () {
    return resource('/404').get({})
  },

  getCourses () {
    let _data = mockData.data.map(x => {
      x.description = 'description sdfsdfsdf'
      let wo = x.workouts.map(c => {
        c.description = 'workout description....'
        return c
      })
      x.workouts = wo
      return x
    })

    return Promise.resolve(_data)
  }
}
